package staticDemo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2025-03-07
 * Time: 09:54
 */
public class Student {
    String name;
    int age;
    static String teacherName;

    public void show1(Student this){
        System.out.println(this.name + "," + this.age
                + "," + this.teacherName);
        System.out.println("this的地址值是：" + this);

        this.show2();
        method();
        this.method();
    }
    public void show2(){
        System.out.println("show2方法");
    }
    //静态方法
    public static void method(){
        System.out.println("静态方法");
    }
}






